<script type="text/javascript"> 
      $(document).ready(function(){
      	$("ul.tabs").tabs("div.panes > div");
	    });
</script>
<script type="text/javascript">
			jQuery(document).ready(function($) {
			$('a[rel*=facebox]').facebox({
			loading_image : 'facebox/loading.gif',
			close_image   : 'facebox/closelabel.gif'
			}) 
		})
</script>
<script language="javascript">
var xmlHttp
function showKab(str)
{
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  }
	var url="<?php echo site_url().'order/ajax_showKab'?>";
	
	url=url+"/"+str;
	//url=url+"&sid="+Math.random();
	alert(url);

	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged()
{
if (xmlHttp.readyState==4)
{
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
//alert(document.getElementById("txtHint").innerHTML);
}
}

</script> 



<div class="left_konten">
<div class="breadcumbs"><?php echo $cumb;?></div>
<div class="detail_product">
<div class="order_content">                       
<h3>Your Account</h3>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="shoppingTable">

 <tbody>
  <tr>
    <td width="20%"><strong>Name</strong></td>
    <td width="80%"><?php echo $acc->nama;?></td>
  </tr>
  <tr>
    <td width="13%"><strong>Phone</strong></td>
    <td width="87%"><?php echo $acc->telp;?></td>
  </tr>
  <tr>
    <td width="13%"><strong>Mobile Phone</strong></td>
    <td width="87%"><?php echo $acc->hp;?></td>
  </tr>
  <tr>
    <td width="13%"><strong>Email</strong></td>
    <td width="87%"><?php echo $acc->email;?></td>
  </tr>
  <tr>
    <td width="13%"><strong>Address</strong></td>
    <td width="87%"> <?php echo $acc->alamat ?>,<?php echo $acc->kota?>,<?php echo $acc->nama_kabupaten?>,<?php echo $acc->nama_provinsi?>,<?php echo $acc->kodepos?></td>
  </tr>

</tbody>
</table>
<br />
<h3>Your Shipping Address </h3>

<div id="demo" class="demolayout">
	<ul class="tabs">
		<li><a class="current" href="#">Inside Town</a></li>
		<li><a class="" href="#">Outside Town</a></li>
	</ul>

	<!-- panes (content untuk masing-masing tab) -->
	<div class="panes">
		<div style="display: block;">
		<form action="" method="post" onsubmit="return check();">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="shoppingTable">
		 <tbody>
		  <tr>
			<td width="30%"><strong>Shipping Address</strong></td>
			<td width="70%"> <?php echo $acc->alamat ?>,<?php echo $acc->kota?>,<?php echo $acc->nama_kabupaten?>,<?php echo $acc->nama_provinsi?>,<?php echo $acc->kodepos?></td>
		  </tr>
		  <!--
		  <tr>
			<td width="30%"><strong>Logistik</strong></td>
			<td width="70%"><?php //echo showLogistic()?></td>
		  </tr>
		 
		  <tr>
			<td width="30%"><strong>Kode Logistik</strong></td>
			<td width="70%"><div id="kode_log"></div> </td>
		  </tr>
		  
		   -->
		  
		  <tr>
			<td width="30%"><strong>Bank Rekening:</strong></td>
			<td width="70%"><?php echo dropDownBank()?></td>
		  </tr>

		</tbody>
		</table>
			

			<div class="form_row">
				<div class="terms">
					<?php echo form_error('terms', '<div class="error">', '</div>'); ?>
					<input type="checkbox" name="terms" />
					I agree to the <a href="#info" style="color:#5F5F5F;text-decoration:underline;"rel="facebox">terms &amp; conditions</a> 
					<?php echo getTerms('terms-order');?>
				</div>
			</div> 
			<br><br>
			<div class="form_row">
				<input type="submit" class="register" value="Submit" />
			</div>   
		</form> 
	</div>
	
	<div style="display: none;">
		 <form action="" method="post" onsubmit="return check();">
			<div class="form_row">
				<label class="contact"><strong>Shipping Address:</strong></label>
				<?php echo form_error('new_alamat_kirim', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="new_alamat_kirim" value="<?php echo set_value('new_alamat_kirim') ?>">
			</div> 		  
		  <div class="form_row">
				<label class="contact"><strong>Province:</strong></label>
				<?php echo form_error('new_prov_id', '<div class="error">', '</div>'); ?>
				<?php echo provDropdown(set_value('new_prov_id'))?>
			</div> 

			<div  class="form_row">
				<label class="contact"><strong>Kabupaten:</strong></label>
				<?php echo form_error('new_kab_id', '<div class="error">', '</div>'); ?>
				<div id="txtHint">
					<?php echo kabDropdown(set_value('new_prov_id'),set_value('new_kab_id'))?>
				</div>
			</div> 

			<div class="form_row">
				<label class="contact"><strong>City:</strong></label>
				<?php echo form_error('new_city', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="new_city" value="<?php echo set_value('new_city'); ?>">
			</div> 

			<div class="form_row">
				<label class="contact"><strong>Post Code:</strong></label>
				<?php echo form_error('new_kodepos', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="new_kodepos" value="<?php echo set_value('new_kodepos'); ?>">
			</div> 
			
			<div class="form_row">
				<label class="contact"><strong>Service Delivery:</strong></label>
				<?php echo form_error('id_log', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="id_log" value="<?php echo set_value('id_log') ?>">
			</div> 
			
			<div class="form_row">
				<label class="contact"><strong>Bank Rekening:</strong></label>
				<?php echo form_error('new_id_bank', '<div class="error">', '</div>'); ?>
				<?php echo dropDownBank(set_value('new_id_bank'));?>
			</div> 

	

		</tbody>
		</table>
			

			<div class="form_row">
				<div class="terms">
					<?php echo form_error('terms', '<div class="error">', '</div>'); ?>
					<input type="checkbox" name="terms" />
					I agree to the <a href="#info" style="color:#5F5F5F;text-decoration:underline;"rel="facebox">terms &amp; conditions</a> 
					<?php echo getTerms('terms-order');?>
				</div>
			</div> 
			<br><br>
			<div class="form_row">
				<input type="submit" class="register" value="Submit" />
			</div>   
		</form> 
 
	
	</div>
</div>
</div>
</div>

</div>	
</div>

<br /><br /><br /><br /><br />